import request from '@/utils/request'

// 查询仓库管理列表
export function listRyDepot(query) {
  return request({
    url: '/warehouse/RyDepot/list',
    method: 'get',
    params: query
  })
}

// 查询所有仓库列表
export function allRyDepot() {
  return request({
    url: '/warehouse/RyDepot/all',
    method: 'get'
  })
}

// 查询仓库管理详细
export function getRyDepot(id) {
  return request({
    url: '/warehouse/RyDepot/' + id,
    method: 'get'
  })
}

// 新增仓库管理
export function addRyDepot(data) {
  return request({
    url: '/warehouse/RyDepot',
    method: 'post',
    data: data
  })
}

// 修改仓库管理
export function updateRyDepot(data) {
  return request({
    url: '/warehouse/RyDepot',
    method: 'put',
    data: data
  })
}

// 删除仓库管理
export function delRyDepot(id) {
  return request({
    url: '/warehouse/RyDepot/' + id,
    method: 'delete'
  })
}
